import request from '@/utils/request'
// 获取验证码
export const reqCode = (phone:string) => request.get(`/app-dev/api/user/passport/sendCode/${phone}`)

// 注册
export const reqRegister = (data) => request.post(`/app-dev/api/user/passport/register`, data)

// 登录
export const reqLogin = (data) => request.post(`/app-dev/api/user/passport/login`, data)

// 获取个人用户信息
export const reqUserInfo = () => request.get(`/app-dev/api/user/passport/auth/getUserInfo`)

// 退出登录
export const reqLogout = () => request.get(`/app-dev/api/user/passport/logout`)